****************
****************
* Replication file for Rival Claims by Bethany Lacina
* Univ of Michigan Press, 2017
* Fig 1.1
****************
****************

use Fig1_1_replication.dta, clear

preserve
collapse (sum) isethnofed ethnoterr_civilwar_count, by(year)

twoway (line isethnofed year, lpattern(solid))(line ethnoterr_civilwar_count year, lpattern(solid) lc(gs12)) , name(Fig1_1, replace) ///
legend(pos(6) label(1 "Countries with autonomous ethnic area(s)") label(2 "Territorial civil armed conflicts")) ///
ytitle("Number of countries or conflicts") ///
xtitle("") xlab(1945(10)2015) 
restore

gen india=0
replace india=1 if cowcode==750

reg ethnoterr_civilwar01 pop_country india

logit ethnoterr_civilwar01 pop_country india

gen lnpop=log(pop_country)

reg ethnoterr_civilwar01 lnpop india

logit ethnoterr_civilwar01 lnpop india
